﻿var Roles = {
	None: 0,
	S: 1,
	M: 2,
	MP: 3,
	OP: 4,
	DRU: 5,
	MRU: 6,
	OS: 7,
	SAL: 8
};

var Events = {
    Cerere_Added: 'Cerere_Added',
    Cerere_Modified: 'Cerere_Modified',
    Cerere_Approved: 'Cerere_Approved',
    Cerere_Refused: 'Cerere_Refused',
    Cerere_Deleted: 'Cerere_Deleted'
};

var ModuleActions = {
    None: 'None',
    More: 'More',
    Search: 'Search',
    Delete: 'Delete',
    Edit: 'Edit',
    History: 'History',
    Save: 'Save',
    Refresh: 'Refresh',
    AddRequest: 'AddRequest'
};

var imagesUrl = null;
function getImageUrl(imageName) {
    if (!imageName)
        return '';

    if (!imagesUrl)
        imagesUrl = $("#ImagesUrl").val();

    return imagesUrl + imageName;
};